// components/newTabBar/newTabBar.js
var app = getApp();

Component({
    data: {
        tabSet: app.customTabBar,
        selected:null,
        cartTotal:0
    },
    attached() {
  
    },
    methods: {
        switchTab(e) {
            const data = e.currentTarget.dataset
            const url = data.path
            console.log("data: ", data)
            wx.switchTab({url})
        }
    },
    // created() {
    //     setTimeout(() => {
    //         console.log("app.customTabBar: ", app.customTabBar)
    //     }, 500)
    // }
})
